<template>
  	<div id="liveRoomSet">
  		<header>
  			<i @click="goBack()"></i>
  			<div>直播间设置</div>
  		</header>
  		<div class="border-8"></div>
  	    <ul>
	  		<li>
	  			<a>
		  			<h3>直播间图标</h3>
		  			<img :src="userObj.pic?userObj.pic:imgUrl" width="34" height="34" />
		  			<!-- <span></span> -->
	  			</a>
	  		</li>
	  		<li>
	  			<router-link to="/changeNickName">
					<h3>直播间名称</h3>
					<b>{{userObj.username?userObj.username:"用户"+userObj.id}}</b>
		  			<span></span>
	  			</router-link>
	  		</li>
	  		<li>
	  			<router-link to="/liveRoomIntroduct">
		  			<h3>直播间简介</h3>
		  			<span></span>
	  			</router-link>
	  		</li>
	  		<!-- <li>
	  			<router-link to='/liveRoomAuthentication'>
		  			<h3>直播间认证</h3>
		  			<span></span>
	  			</router-link>
	  		</li> -->
	  	</ul>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				userid: "",
				dataList: ['从相册选择'],
				showTip: false,
				imgUrl: require("../../image/icon_doctor@2x_03.png"),//默认头像
				userObj: {}, //用户信息
			}
		},
		components: {

		},
		methods: {
			goBack() {
				this.$router.back();
			},
			//根据用户id获取用户信息
            getUserData() {
                this.userid = localStorage.getItem("loginMobile");
                this.$api.get(this.$api.baseURLSchool,"select_cid/user/"+this.userid,{},r => {
                    this.userObj = r.data.info;
                },err => {
                    console.log(err);
                })
            },
		},
		created() {
			this.getUserData();
		}
	}
</script>
<style lang="scss" scoped>

</style>
